<?php

?>
<form action="addUser.php" method="POST">
    Website(use Store View Code from Magento):
    <input type="text" name="Name" value="Type Admin Name Here" />
    <br>
    Password:
    <input type="password" name="Password" value="" />
    <br>
    Store Code(This is linked to the website. Default website is 1, each additional website is one higher (i.e. the first additional website is 2, the second is 3, and so on.):
    <input type="text" name="code" value="" />
    <br>
    <input type="submit" value="Create Admin/Install Database" name="go" />
</form>
<?php
     if(isset($_POST['go'])){
        include 'config.php';

        $link = mysql_connect($config['databaseURL'],
                            $config['databaseUser'],
                            $config['databasePasword']);
        $query="INSERT INTO`users`.`update_users`(
                    `website`,
                    `password`,
                    `storecode`
                )
                VALUES (
                    '{$_POST['Name']}','{$_POST['Password']}','{$_POST['code']}'
                );";
        mysql_query($query);
    }
?>

